package com.itheima;

import com.itheima.service.StuService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AppForList {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContextForList.xml");
        StuService stuService = (StuService) ctx.getBean("stuService");
        stuService.save();
    }
}
